added basic support for visiting subpages and resources