moved sky into a separate UI factory class