first model functions for pages and files