created the controls onclick section