set up rules page, rework some html