Add auto detect active class to show the relevant content