pass in open status when adding click handler