Added collapse/expand behavior to doi changes.