Refactor code from the tasks controller

Place instance variables in display class to implement the facade design pattern