expanded "view" command functionality