well, u r gonna hv to set the 'ui' variable public.. then u can access its different components in different files