Refactor views to support all GET requests (not only ajax)