GUI tweak and refactoring on mesh controller.