refactory MainActivity
refactory MainActivity