[Fix javascript bug on displayDetails function]
Added data-id attribute on the icon for displayDetails then extracted this id to be used inside the function