add home template checking on deleting