Hooked up detection of submission of the location