Webpanel update

Code improvements, webpanel still in dev stage.