fixed some bugs and add animation when finish record