Added GUI for selecting ancestor