Adding newMessage and resolving elements through refs rather than query selectors