fixed routing so that pages can be bookmarked