hiding destroy func on index page