Add dynamic active class support to navbar