Adds click events to sidebar links