button toggle functionality for cart row editing