fixing getdashboard procedure