add button to toggle stack collapse state