Added handling of not unique lot name error, changed styles