Improved functionality for when user clicks on the component's checkbox.
Added functionality for the needed use cases.