Added a protected variable in Mode module to control the current mode. Improved the way you select/deselect a component