refactored tasks controller, welcome index view and todo.js