Cleaned and refactored js view code
Added client side validation (+necessary update to new jquery ui)
Fixed broken save or reset dialog
Adapted server side validations to client side