updated retrieving of the url of current app