Adding IDs automatically based on user selections