A function to render uniformly the "pagesection" (i.e. page_index + top/bottom buttons + other buttons) across all the templates

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #504 from emanuele45/template_pagesection

A function to render uniformly the "pagesection"