Improved REST API ; updated web UI