make inline edit function partially work