added functionality to show individual posts