Merge TaskArrayAdapter and TaskManager into a single class TPTaskManager