Example source code for Multiple UI Application