merge edit function to content