add 'state' field in view