web-ui: introduced CGI_PATH
web-ui: improved plotting