changed homepage from method to class view
created base template & used in homepage