senioir panel script bug fixes