added tray menu; simplified resources loading