Feature/chatmanager

refactor the logic for appropriate scrolling to a method and just do a call here and keep the handler short