added "Save changes" button

added some logic to check whether the design itself is changed based on the current state to avoid users leaving the page with unsaved changes

this is the first step toward auto-saving :D whee