adding isActive function to trigger the BS3 style on click