Add a toggle method to call expand/collapse