add auto scroll directive to chatbox