fix records#index view bugs