added transitions when selecting a line