rendering to index page after redirecting
success message added for todo deletion