updated template and added date picker initializer