Prevents default actions for events