init the main activity UI.