shutdown with priority (if wanted), gui stores tab index