Add state machine for submission model