updated layout
added some element bounding to add element to the query