Refactored UI and added Typescript demo