placed open quick panel in function to enforce DRY