add command for viewing item

Sorry, commit have been multiple because I'd done the same coding by copy and past.