moving create card into onload plugin