finished an ugly, but working version with all the click actions for #22