extended main to show posts