Close view when clicking on save button