Refactor the code from the tasks controller

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