Optimized book store example
Fixed an event delegation bug in book store example