updated Galaxy and Measurement controllers to output formatted json