adding timeout for user interactions