made delay an option in the UI