Refactored controllers and added feature where an admin can see materials in descending order.