Convert memory from MB to GB for display and back to MB before submit