solve some bugs and add activity animation.