add onActivityResult() for Bluetooth dialog activity

I made some other cosmetic fixes(nothing special)