Moving all the dom lookups to reusable references