added replay or cancel feature