only set content if we are still in principals messages.
clear flash on each transition