made "action" button not reload the page if it is already on the given URL