setup ace instance on view load