js fixing for dashboard