commit before adding date picker