minor fixes to make the sample more mobile client friendly.