added get most recent posts functionality