add functionality for url changes. (fixes #21)