converted to base template system, added viewlearning, known bug because classurl needs to be added to database