bug fixes to admin