isolate the scope and get details correctly