Updating styles with new type