Updated appp to use multiple ui views as well as history management
Adding support for clearing the history