added scrollTop whne draw mode is changed