refactored posts#show template