Fixed some problems with the admin template