added graph type selection