added viewClientDetails handling in CLI