added colapse/expand button to popups.