Custom elements hide themselves instead of remove. Added logic to show/hide web parts instead of add/remove.