added some helpers and added them to the samples page