finished implementation of admin