Fixed a focus bug with locate button and added Exit menu option.