admin controller
added middleware factories