move page functions to the top of the bootstrap-layout file