Moved all revs functions to admin controller