added function to get elements in dom element