fixed segfault when NULL data is returned by the server
added tray icon and minimizing