create the frame of state_machine