refactor and private API

this commit doesn't add any new features, just a refactor of the
views, more css and the API becomes private.