Add debounce function on selection change, performance improved