fix function to change stylesheet