Close modal on clicking save