Prevent page reload when clicking the buttons