apply in active state to search function