add record table functionality