moving card render call into html example