Fixed view hiding buttons bug