add torch button and torch functionality