Refactored.  Fixed up UI.

- Refactor ScanRequestListener into a separated class.
- Fixed up some UIs.