Delete button and Viewer window