Execute onInit and window colour change