Accurate control of a Bose-Einstein condensate by managing the atomic interaction