implemented ui and api for card picking