edited posts controller to display posts newest first