updaed code styling for posts