implemented flow chart dialog