fields now working when a table is selected