fixed edit details and added fields to getUserMessages