changed to class-based views and added basic list views for functions and capabilities. Also added a base template