finish UI of MainActivity and BaseActivity