added the web master state function