Capture logging to ui
Factor out Ra/Dec formatting code