improved UI by adding visual buttons with up and down state, singal strength and magnetic field strength bars and connection status. further streamlined code.