Refine the UI of MainApplication.