Added front-end percentage view and fixed some bugs