limit number of Acitivity refreshes, issue #138