implemented locationline that follows cursor