trying to fix a null pointer in pagefragment