expose toFragment