Implemented fragments onscreen/offscreen mechanism