Fixing cancel button so that it refreshs page without saving changes