Added change event to get element id and coordinates