Added task viewer file, refactored task controller