Fixed bug with multiple views, added html5 date input