RecordController Modified

modified the init function