Changed type of button in order to send info to the server