Fixed api calls and system tray icon