Make sure button 'move to the end' highlight last line