implements active page routing based on URL. useful for sharing in the future