Added changes to Modify button click event