added more variables in showDashboard() function