Added stuff that happens onclick of confirm button