fixed: code formatting
renamed method getViewDataForResponse to getDataFromView