add MainApplication