base handler for WebDemo