Added type="button" to pagination buttons to prevent unwanted form submitting