button changes on message text change