fix for hiding tray menu when focus is lost
declare fields final