Moving connection code to controller (+ UI alignment change for temperature)