implemented unit conversion page with error catching