added save and generate function for web panel