fixed open and close toggle. auto-open on message.