simple abstraction to select and create elements from the dom