implementing scroll to top/bottom function

for thread view controller