added autoscroll  and resize directives for chat