Implemented an 'update stylesheet' method