Update tray behavior, add network check before refresh