adding show action to posts controller