Better way of mapping URLs to pages