Updates to Sample Code

- Updated UI Presentation on samples
- Fixed Bugs