corrected element selection for preview update