Collapse button events into a generic click method