Some cleanup and pass some key to what the page is to the documentation view