changed names and added function for insert to downloads tree