Edited load function to add task individually instead of using state.setAllTask();