create the post when the user clicks on button instead of when the user opens fragment