Removed toggle and added setVisible

As per the latest github request