add warn message for delete, added some view partials to follow DRY