added user and application idle detection