added admincontroller and adminmodel.