changes to make link opening work in older android versions