fixed logout bug, fixed no board preview bug