made the map panel's layers modular and separate