added layout based on post class