loading dialog into state machine