added saving  mechanism for web panel