protect against accidental history back clicks using a prompt