add MainPage and modified fragmet