added replace device button, removed console.log