minor changes to control interface. added jquery adapter