minor bugfixes and improved last_action view

I like this, but is the close paren in the right place?