Added layer delete functionality