Done formating the code into different class. added the
fragmentpageradapter