fixed bug of back buttom, may have bugs