Refactor task controller and clean up views and task displaying