refactored fragmentsViewer to iterate over fragment partial