update controller and directive examples