ajax callback edit scope