   }
 }
 
-// When button clicked, change delay value
-void updateDelaySettings(){
+// when user selects pre/post delay, draw 
+void updateDelayLoop(){
+  bool set_delay_value = false;
   // get latest EEPROM values..
   readEEPROM();
   if(in_pre_delay_menu){

    Serial.print("Sunset: ");
    Serial.print((int) sunset[tl_hour]);
    Serial.print(":");
    Serial.println((int) sunset[tl_minute]);

    int delta_mins = (now.hour() * 60 - sunset[tl_hour] * 60) + now.minute() - sunset[tl_minute];

    if(delta_mins > 0){
      Serial.print("Time after sunset: ");

#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <stdint.h>

#include <LiquidCrystal.h>
#include <Wire.h>
