created admin helper method and modified admin dash view