fixed buttons so that they work with rules