fragments tablet code