Ensuring only enabled panels can be opened.