abstracted editTask function
advnace and amend implemented using editTask