fixed up message box and maps functionality