record and dashboard script added