Added active item class dynamically