set padding for card, add event handler for clear button