more refactoring of TaskController and InputFieldViewManager