use timeout to trigger modal rendering