Action manager with undo as well as notmuchthread being passed around