Fixed "cancel" button on edit card dialog