preventDefault added for touch events; finished debugging (hopefully)