fixed bug on clicking checkbox not triggering selected