Wired up some basic UI events