updates HTML for autocomplete modal
tidies up styles to make the modal grid uniform
trying to fix the JS