Added dom vars
Set up dom vars and click fn