added edit funtionality
update edit functionality