UI mostly done.

Minor bugs including:
1. Keyboard focusing issue.
2. Dialog scroll issue.