updated ui behavior after message sending