added logic to save btn in list