Added functionality to selection buttons in side panel