loading element to dialog