Add comments to explain resize and try to fix safari formatting