Added erase mode to viewer