implemented removeItem functionality