fix tab bug in rulesView