changes for submitting details to the server