setup sky toggle function