fixed admin page errors
Added custom functions to admin; added cohort model