         actionList.append(approveSuggestionAction)
     }
     
+    // update properties in application and in the database
     private func approveShiftChange()
     {
-        self.selectedShift.status = "idle"
+        selectedShift.status = "idle"
+        selectedShift.owner = selectedShift.acceptedBy!
         
         let query = PFQuery(className: "Shifts")
         query.getObjectInBackgroundWithId(self.selectedShift.objectID) { (shift: PFObject?, error: NSError?) -> Void in

import UIKit
import Parse

@objc protocol ActionSheetDelegate
{
    func refresh()
    optional func showAlert(alertView: UIAlertController)
    func switchStateOfActivityView(on: Bool)
    optional func popViewController()
}

class ActionSheet
{
    var selectedShift: Shift

        actionList.append(acceptAction)
    }
    
    // destructive button on the actionsheet
    func createDeleteAction()
    {
        let deleteAction = UIAlertAction(title: "Verwijderen", style: .Destructive) { action -> Void in
