SmoothState

Added page animation and fixed some bugs.