adapting the layout of ConstarintsDialog and adjusting functionalities
for issue #53