Refactor clear button

Clear button create new board and make history empty