Add functionality to change sidebar active element.