Updates px to rems with function