A couple comments

I noticed control2 is not used. But I leave the code there in case it
will be modified for something else.

Also, was the map suppose to make ave_point as the center of the screen
when the user click on the Find Average button?