adding support for create new records in sample apps