refactored tasks and ordered tasks in descending order of creation