added add_phase_definition method plus input_dialog