move card mode to oa.model