Added functionality for various form elements