Redirect to the edit page after adding new template