fix devices & device page
fix rules page
setup.py