returning json strings and changed actions to match models