1. handle keyevent for all UI

2. add selection border to homescreen.js
3. fix wrong size calculation issue