added save button and click event