remove endless scrolling from hierarchical template