added selecting and deleting lines