Implemented rules section collapsing/expanding