added rules page and rules editor