Editor: Fix out of bounds error on layer switching
Editor: Add layer add/remove functionality