state machine to track progress through annotation dialog