fix some bugs and optimize UI and add the tempalte of bookdetails