Added delete function.
new View and delete template