Make URLs change when search button clicked