add controls and js