Refactor rules to enable toolbar