demo with custom template