added a post request when the new content button is clicked