loading page elements from array