better method to change stylesheets

hopefully fixed all the fuckups