Cleaned up dashboard.py