Some improvements

Reduced the toolbar size, changed some icons, the panel to do "toBack" and "toFront", and added some code to avoid problems in "TFG" demo.