almost finish the ajax part of home page and finish the datepicker part of home page