added post layouts and DRYed things up