added server side edit functions