Fixed a trivial bug with the hide/show functionality. Still rather buggy though. Should check input before adding the widget again!