Use ids in record api; move record select list to view