[UI] CardPanel code clean up