added folding for pair view