methods to create and update tasks