adding function to build page sections