fixing refresh bug...change response to return json