adding state machine for resetting counts of modals and reports