add group of selecting figures and connecting with gui