updated admin controller to correctly input serailized data