move topbar functionality out of board