improve layout
bug fix with record_txt model