Rename Function and Make Callback so Cancel happens before Alert Dialog