restructuring project and add rule pane