url check on client side