Added the mask to avoid switching card, when in editing mode.