implement card window. fix bug for drag from card list