comments explaining dashboard steps
factored out get_activity_state