Changed implementation of timepicker and datepicker

TimePicker and DatePicker are now private members of MainActivity, so I don't have to pass an instance of MainActivity to them.