rerouted to root path after adding a snippet for more efficient snippet adding