Added edit task functionality