added rules panel
Added tests for showing the rules