Generate needed elementId's in case they are not set