buttons replaced with spans
clearing of dom before render