adding in cancel / confirm functionality