move add analysis area add layer actions.
clean up unused custom layer code