Added jQuery functionality for tooltips and sidebar hiding