refresh monitor function