prevent navigation properly (and by that i mean hackily)