Event hander by device
Added id attribute