Added collapse/expand behavior.