changing the px to %