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>