Help on Rotatry encoder to scroll pages and push button to restart arduino...

hi, i have added the 100nf cap to reset , and is the debounce connection is correct?
updated circuit