Added update admin panel logic