adds working edit function