cleanup in views file
Fixed a bug on the dashboard