new page handling (needs an index) and cleaned up rules interface