added support for slider and text field