Modified Dialog. Button  and fixed bug in lib

lib:
1. added 'removeNode' function
2. fixed typing error