Fixed numerous admin panel bugs.