write function for change active when user click to criteria on the skill detail page