change state of packrat toolbar button appropriate to context