Modified for easy adding of pages