added functionality to add new task