add autoclose datepicker + refactoring index.html