changed the url to be relative rather than fixed to localhost