wired the AppUI to be passed in properly