add prevent default handler