refactoring devices, views, and models for better clarity. Removing depricated code. Adding TODOs in dashboard view. Documenting dashboard view functionality