setting up the control widgets