preinstall history check

Made it so history function checks for existence of URL before adding
to preinstall history