update ui,add tray support