coded the new control class
made the positioning by percentage