onConfirm method couldn't be found so i deleted it.