UI command setting magnetic field is working