modified controller for the left panel so that it shows only one at a time