add post display logic