saving state on dashboard