hide login and search pane whene they are closed