border around a terms is drawn, if an end cell is selected