Updates to make admin panel function correctly.