Fixing hiding the view