improving localModel with destroy method