setup ace in inserted callback