implements mainpage

activity and fragment