expand action buttons behave correctly when items are collapsed in the beginning