fixed some message content getting cut off, fixes #13, fixed refreshing when entering foreground, fixes #8