added mosuelistener for moving lines