update functions to start and stop web-server