Attached event listeners to buttons
Added form field reader functions, fleshed out queryForDevice