fixed bud getElement needs refactoring