declared the onUrl handler