Made sure json post data is valid JSON and added missin params to button methods