add a wait for selection in order to wait ajax response