working of creation of tasks and display tasks