changed interaction to be integrated in layer definition call instead of in the url parameters refs #1491