Tray icon functionality ready (needs refactoring)