breaking out page-specific functions