created field selection functionality