chat: input moved to top, reverse order of messages