Added a post function when you press the button.