Fixed incorrect templateEngine logic
Changed pagination data format
Updated fixtures and output to match new pagination api