Changed the remove function - it didn't rename the ids properly when you pressed remove