updated controller to work with ViewTodo ,profile