clean up:

- separate UI and Book components,
- use index.js as default script for a dir