adding function sum on the pages_controller