add a boolean solving_gui to solve the problem