Fixing dashboard auto refresh