updated paths and refactored task index controller