Use ajax to transfer the data instead of the hidden form