using attachpoint instead of dom.byId