Bug fixed in dashboard-view

Small refectorings