adding edit functions