added preventDefault() to click events for spinner