         if scope.mgButtonName is 'checkout' and scope.mgStart and scope.mgEnd
           scope.mgEnd = date
           startSelected = false
+          removeCheckOut()
+          drawEndDate date, nYear, nMonth, nDate
           if scope.mgCallback
             scope.mgCallback('end')
           $timeout (->

          # startDate is fixed and only end date will be changed
          if scope.mgOptions.mgPenTodaysDeal
            scope.mgEnd = date
            if scope.mgCallback
              scope.mgCallback('end')
            $timeout (->

      id = $filter('date')(scope.mgStart, 'yyyy.MM')
      monthElement = angular.element document.getElementById(id)
      element.parent()[0].scrollTop = monthElement[0].offsetTop

  controller: ['$scope', 'ModalService', 'Calendar', '$compile', (scope, ModalService, Calendar, compile) ->
    scope.weekdays = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    startSelected = false
