add function to update cpu status on index page