changed styling if successful