New card form can be dismissed by clicking on the background