call setContainer before initialize