move the posts listing to a partial and make a controller method we can call to get the listing and reload the list when clicked