fixing view page logic. adding initial ajax support for bookmarks.