refactored code in _fields so that various fragments now can be given style through classnames rather than simply sizes. Also removed inline-style from input elements.