cache dom elements in options