Separated API from web UI.