loading the admin class only if the dashboard is being loaded

fixes #104