changed function name from sendLocation to locationChanged
don't focus window unless buttonIndex was 0