added dateinput date picker form control widget
code cleanup and size reduction