Moved admin client code into separate files.
Fixed error if no language was selected.