added API, improved UI