made it so that the url is dynamic no matter what the protocol, hostname, and port are