reformatted dashboard js