Refactored the loading of the map to it's own method. A call is made to the method before an edit is done. This fixes the cancel button.