created admin pages and fixed the materials controller a bit