Fix showPrevious option handling in template and e2e test