added checkbox func