small task controller refactor