starting to draft in ui event handling from elsewhere