update helpers to handle undefined value and update record.show