added edit ent to lua