Improvements in map detail, layer detail layout.

Also fix document upload layout.