Added some front end features to sample_demo