Fixed errors in Bootstrap, Toolbar and overrided allowAdd() method

This PR fixes the following issues.
[1] Known JavaScript issue (Thanks to Janich)
[2] Added New method override -  allowAdd() (Thanks to Elin)
[3] Fixed Toolbar