redirect to index when creating a new task