Layer editing functions finished