add preventDefault()

Close button of avgrund does not prevent the default behavior.
I think preventDefault is needed.