implemented function when the user is idle.