Set state and delegate calls in response to the url session (fix #3)