Remove state from toggleMainView
Added license