adds debounce to fix resize errors  by restoring defaults