changed from function based view to class based view. overode dispatch method to only show json data from selected page

added tests

added link tag to header

squashed commits