modified set_active to search for keyword in url