Added progressbar when adding book and simplified structure