minor code restructuring
Only display content with visibility set to '1'