updated selector to match input change