need to capture event in order to prevent default