renamed some controllers to devices, cleaned up app.py