relinked the toggle with the view on startup