Clicking on an element in the preview should select it in the layout

When you click on an element within the preview view it should select it in the layout and also switch the left panel to layout automatically