#20 added pagination support to the controller and to the template. Needs to improve only the style to make it all more even