added prepareForSegue
updating on showViewController
updated destroy function