add check and uncheck funtion