change to layout and public  adding datetimepicker