Create ViewCommand type