delete reducdunt view function and template