update rebuild entity on saveEntity function