moved button rules to own file