Moved process code to webui