more selective use of preventDefault(), to allow page scrolling