style added to rules
changed rules hide/show func