retrieve url and output page (outputing page needs work)