added graph type selector