fixing dom errors on reload by unbinding smartly. also, triggering logout on view reload