update controller spec and directive