Changed the listener to listen to "change" instead of "click".