added methods to edit and delete tasks