add logic to show action buttons when items been selected