added check box functionality