Show confirm box if user tries to leave application edit page when there...

... are unsaved changes