added set timeout delay to show card function in main.js