var LogoutView = View.extend({ el: "#logout", events: { }, show: function(){ document.body.classList.add("logout") }, hide: function(){ document.body.classList.remove("logout") }, submit: function(e){ e.preventDefault() }, success: function(){ // change login in ui to logout or whatever }, })