refactored album and index controller and routes