edit functioanlity