added basic query view
included templatetag for navigation and apply in base template