});
 
                 // When estimate location button is clicked, geocode using address
-                $('#glm-estimate-location').on('click', glmEstimateLocation());
-                $('#locationMapToggle').on('click', glmEstimateLocation());
 
-                function glmEstimateLocation() {
+                $(document).on('click','#locationMapToggle', glmEstimateLocation);
+                $(document).on('click','#glm-estimate-location', glmEstimateLocation);
 
+                function glmEstimateLocation() {
                     // Get all address parts
                     var geoAddr1 = $('#addr1').val().trim();
                     var geoAddr2 = $('#addr2').val().trim();