added rest port control, and automatically start the web ui