prevent url bar from navigating