improved nav bar function w debounce, adjusted some nav bar stylings depending on screen size