added a rising/falling edge for settings