Fixed the issue in main layout being clickable when the panel is expanded.