fixed bug 47 and fix bug scroll and add timeout