refactored setting title for card