trying to pull data/logic from dom