Track UI created event in separate variable