minor bugfixes and improved last_action view

I like this nomenclature.