Added a new function to select from the DOM