moving logging into admin