starter code for url swapping