added function to page