added delete and edit task, moved corresponding methods to Task class