integrating state machine for Teacher (NOTE: only teacher, teacher schedule state machine is still pending)