refactor LayerManager, change some interface