Hide a Page not working as expected