palga demo app code