Hooked the listener up to the UI