build card opening/closing