Lint code and clean up dashboard view