add pushState.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
convert tabs to spaces.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>