Fixed some problems in the view and updated the task controller