Fixed #4415 Displaying prompt when user navigates away from page

If user navigates away from the page without saving the changes on update/insert table, a confirmation message would be displayed.