moved all sun functionality to its own controller