Added example of UI, event and reaction function in view