Better showing/hiding of tray