add edit task functionality