MapContext modal map viewer now have its own controller and refactoring and fix js.