adding checkbox and functionality to close #142