start adding editing functionality