Assign id to element