Added system tray functionality