better way of preventing browser location on result page