add error handling and loading animation
add error message and loading animation for card