CHANGED:applied the Button elements selection and selector triggle function