Cleaning up view hiding