fix hiding/unhiding to and from tray