modify for main panel