add error display and resize chat message area