added experimental code for auto align scrolling
identify the alignment code problem