Added view command handling