Preventing clicks from firing

Made use of `event.preventDefault()` to keep `click` events from firing.