fixed inc/dec/ func for good by adding a delay for debounce