testing if glueToMap is called by button press