Switched to a method to submit the post