add viewing and fix case on z axis