updated the XActionBar to evaluate visibleWhen and role-permission upon refresh.
This is to address the performance issue when dynamic property is turned on.
We set the dynamic=true only when we need to replace all buttons inside the toolbar