updated more code for the ui handlers for implementing ifaces.