added right flags...again...
implemented OnClosedListener and OnOpenedListener for menu_tray