updates the routing between pages to use get instead of match method