Fixing build list function to accept page file