added controls to pplot example