Add logic to left panel.