added auto scroll at the end