Refactor the code in the tasks controller

Place instance variables from tasks#index into the display class to implement the facade design pattern