Updated sample_app with the appropriate title insertion code.