extracted posts display into partial; bugfix in show posts controller