enabled to set background layer and container
change some methods to C++ like style