Implemented history tool and layers into main project