add/remove layer functionality complete