Getting the modal window to have all the information I need to send to the server.