added gui form and basic listeners
added location-adjusting function & marking relations in gui