cleaned up learning_materials controller