Fix gui to work with IE. Improve upon modifyFields functions.