Edited MainPageActivity