Cleaning up final code for map url opening