     func dialogRequest(request: HttpRequest) -> HttpResponse {
         let captured = BBTSequentialQueryArrayToDict(request.queryParams)
 		
-        if let title = (captured["title"]),
-			let question = (captured["question"]) {
-			
-			let answerHolder: String? = (captured["placeholder"])
+        if let title = captured["title"], let question = captured["question"],
+            let okText = captured["okText"], let cancelText = captured["cancelText"] {
+			
+			let answerHolder: String? = captured["placeholder"]
 			let prefillText: String? = captured["prefill"]
 			let shouldSelectAll = (captured["selectAll"] == "true") && (prefillText != nil)
             

				}
			}
			
			let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel){
				(action) -> Void in
				let _ = FrontendCallbackCenter.shared.dialogPromptResponded(cancelled: true,
				                                                            response: nil)

            alertController.setValue(NSAttributedString(string: title, attributes: [NSFontAttributeName : UIFont.systemFont(ofSize: 20, weight: UIFontWeightBold), NSForegroundColorAttributeName : bbtColor]), forKey: "attributedTitle")
            alertController.setValue(NSAttributedString(string: question, attributes: [NSFontAttributeName : UIFont.systemFont(ofSize: 14, weight: UIFontWeightMedium), NSForegroundColorAttributeName : bbtColor]), forKey: "attributedMessage")
            
			let okayAction = UIAlertAction(title: okText, style: UIAlertActionStyle.default){
				(action) -> Void in
				if let textField: AnyObject = alertController.textFields?.first{
					let response = (textField as! UITextField).text
