abiltiy to add tasks to the table
move addNewTask logic to new function