Lots of changes and fixes (in admin)

Fixes.
Committer: Oleg Kravets