AJAX call instead of page refresh whenever user hits the save button