Add two buttons on the buttom.Fix some bugs.