added cancel button for modifying second interval