Add page and media loading functionality