add constructor to page