Added MessageData to handle JSON reuests outside View