take dom element instead of id