Added the option to add an active class to the current selected link on click