fix location component interacts with main window